package com.xfcy.blog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * 网站配置表(WebConfig)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@TableName("b_web_config")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebConfig implements Serializable {
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //logo(文件UID)
    private String logo;
    //网站名称
    private String name;
    //介绍
    private String summary;
    //关键字
    private String keyword;
    //作者
    private String author;
    //备案号
    private String recordNum;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime updateTime;
    //网站地址
    private String webUrl;
    //支付宝收款码FileId
    private String aliPay;
    //微信收款码FileId
    private String weixinPay;
    //github地址
    private String github;
    //gitee地址
    private String gitee;
    //QQ号
    private String qqNumber;
    //邮箱
    private String email;
    //显示的列表（用于控制邮箱、QQ、QQ群、Github、Gitee、微信是否显示在前端）
    private String showList;
    //登录方式列表（用于控制前端登录方式，如账号密码,码云,Github,QQ,微信）
    private String loginTypeList;
    //是否开启评论(0:否 1:是)
    private String openComment;
    //是否开启赞赏(0:否， 1:是)
    private String openAdmiration;
    //游客头像
    private String touristAvatar;
    //公告
    private String bulletin;
    //作者简介
    private String authorInfo;
    //作者头像
    private String authorAvatar;
    //关于我
    private String aboutMe;
    //是否开启音乐播放器
    private Integer isMusicPlayer;

}

